package com.cxcy.swustlearner.service.Impl;

import com.cxcy.swustlearner.mapper.CollegeMapper;
import com.cxcy.swustlearner.pojo.College;
import com.cxcy.swustlearner.service.CollegeService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CollegeServiceImpl implements CollegeService {
    @Autowired
    private CollegeMapper collegeMapper;
    @Override
    public List<College> getAllCollege() {
        return collegeMapper.GetCollege();
    }

    @Override
    public void addCollege(College college) {
        collegeMapper.InsertCollege(college);
    }
}
